package com.gite.nouette.admin.implementation.model.command;

import com.gite.nouette.admin.contract.model.ICommand;
import com.gite.nouette.admin.contract.model.IModule;
import com.gite.nouette.admin.contract.model.command.ICommandRemoveModule;

public class CommandRemoveModuleImpl extends AbstractCommandHandlerModule
		implements ICommandRemoveModule {
	private IModule module;

	public CommandRemoveModuleImpl() {
	}

	@Override
	public void run() {
		IModule module = getModule();
		getManager().removeModule(module);
	}

	@Override
	public IModule getModule() {
		return this.module;
	}

	@Override
	public void setModule(IModule module) {
		this.module = module;
	}

	@Override
	public void update(ICommand observable) {
		// nothing to do
	}

}
